<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>e-MarioSakoban:  Fichier source de /home/ychoucha/cours_IUT/Programmation/C/sakoban_project/include/constantes.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&nbsp;de&nbsp;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
<h1>/home/ychoucha/cours_IUT/Programmation/C/sakoban_project/include/constantes.h</h1><a href="constantes_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">constantes.h</span>
<a name="l00003"></a>00003 <span class="comment">------------</span>
<a name="l00004"></a>00004 <span class="comment"></span>
<a name="l00005"></a>00005 <span class="comment">Par mateo21, pour Le Site du Zér0 (www.siteduzero.com)</span>
<a name="l00006"></a>00006 <span class="comment"></span>
<a name="l00007"></a>00007 <span class="comment">Rôle : définit des constantes communes à tout le programme (taille de la fenêtre...)</span>
<a name="l00008"></a>00008 <span class="comment">*/</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef DEF_CONSTANTES</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define DEF_CONSTANTES</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span>
<a name="l00013"></a>00013   
<a name="l00014"></a><a class="code" href="constantes_8h.html#bad9ad5ae94fd56569e71c156349030b">00014</a> <span class="preprocessor">#define TAILLE_BLOC         34 // Taille d'un bloc (carré) en pixels</span>
<a name="l00015"></a><a class="code" href="constantes_8h.html#5b621c07985e98b04fc2d2195b85ad69">00015</a> <span class="preprocessor"></span><span class="preprocessor">#define NB_BLOCS_LARGEUR    12</span>
<a name="l00016"></a><a class="code" href="constantes_8h.html#d0de8de53b10369f89648fed34ce16c9">00016</a> <span class="preprocessor"></span><span class="preprocessor">#define NB_BLOCS_HAUTEUR    12</span>
<a name="l00017"></a><a class="code" href="constantes_8h.html#6068a247ff9ece1b0a9773c58144906c">00017</a> <span class="preprocessor"></span><span class="preprocessor">#define LARGEUR_FENETRE     TAILLE_BLOC * NB_BLOCS_LARGEUR</span>
<a name="l00018"></a><a class="code" href="constantes_8h.html#fd1a1e285af564b849b17498e82e1a41">00018</a> <span class="preprocessor"></span><span class="preprocessor">#define HAUTEUR_FENETRE     TAILLE_BLOC * NB_BLOCS_HAUTEUR</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 
<a name="l00021"></a><a class="code" href="constantes_8h.html#06fc87d81c62e9abb8790b6e5713c55b5c97701a87d36c8f2c0de80c5865b8e2">00021</a> <span class="keyword">enum</span> {<a class="code" href="constantes_8h.html#06fc87d81c62e9abb8790b6e5713c55b5c97701a87d36c8f2c0de80c5865b8e2">HAUT</a>, <a class="code" href="constantes_8h.html#06fc87d81c62e9abb8790b6e5713c55b4b07baad9e862178efeac3e522475caa">BAS</a>, <a class="code" href="constantes_8h.html#06fc87d81c62e9abb8790b6e5713c55b4ee960d97b04a1f22ed7ff81c7aa2e86">GAUCHE</a>, <a class="code" href="constantes_8h.html#06fc87d81c62e9abb8790b6e5713c55b79f680205087956546ae263797bd1343">DROITE</a>};
<a name="l00022"></a><a class="code" href="constantes_8h.html#df764cbdea00d65edcd07bb9953ad2b7d4686f4f969d0e851d9170c09a89a837">00022</a> <span class="keyword">enum</span> {<a class="code" href="constantes_8h.html#df764cbdea00d65edcd07bb9953ad2b7d4686f4f969d0e851d9170c09a89a837">VIDE</a>, <a class="code" href="constantes_8h.html#df764cbdea00d65edcd07bb9953ad2b74812eae6f742a8f18779779eeeffd570">MUR</a>, <a class="code" href="constantes_8h.html#df764cbdea00d65edcd07bb9953ad2b71c6d73af293ab4747c98eb9f7fc9658e">CAISSE</a>, <a class="code" href="constantes_8h.html#df764cbdea00d65edcd07bb9953ad2b722a438a68cc15345bf7d320d86e5bc3c">OBJECTIF</a>, <a class="code" href="constantes_8h.html#df764cbdea00d65edcd07bb9953ad2b7e9a91f76741912068c09ec2a289d963b">MARIO</a>, <a class="code" href="constantes_8h.html#df764cbdea00d65edcd07bb9953ad2b7dc0e3ac506997475327faac50af05d7f">CAISSE_OK</a>};
<a name="l00023"></a>00023 
<a name="l00024"></a><a class="code" href="constantes_8h.html#48263fdb63d62aaa1ae5bd9751590736">00024</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structpositionJoueur.html">positionJoueur</a> <a class="code" href="structpositionJoueur.html">positionJoueur</a>;
<a name="l00025"></a><a class="code" href="structpositionJoueur.html">00025</a> <span class="keyword">struct </span><a class="code" href="structpositionJoueur.html">positionJoueur</a>
<a name="l00026"></a>00026 {
<a name="l00027"></a><a class="code" href="structpositionJoueur.html#bce94c05f9fb3e35b0827c98531ef52d">00027</a>         <span class="keywordtype">int</span> <a class="code" href="structpositionJoueur.html#bce94c05f9fb3e35b0827c98531ef52d">objectif</a>;
<a name="l00028"></a><a class="code" href="structpositionJoueur.html#6ae8ec157aa497b7fa2d7536f0a5cea8">00028</a>     <span class="keywordtype">int</span> <a class="code" href="structpositionJoueur.html#6ae8ec157aa497b7fa2d7536f0a5cea8">positionJoueurX</a>;
<a name="l00029"></a><a class="code" href="structpositionJoueur.html#cdc348706b05dc6977fc202ac04e439b">00029</a>     <span class="keywordtype">int</span> <a class="code" href="structpositionJoueur.html#cdc348706b05dc6977fc202ac04e439b">positionJoueurY</a>;
<a name="l00030"></a><a class="code" href="structpositionJoueur.html#59a663d85bf1fcd60404abf260212805">00030</a>     <span class="keywordtype">int</span> <a class="code" href="structpositionJoueur.html#59a663d85bf1fcd60404abf260212805">carte</a>[<a class="code" href="constantes_8h.html#5b621c07985e98b04fc2d2195b85ad69">NB_BLOCS_LARGEUR</a>][<a class="code" href="constantes_8h.html#d0de8de53b10369f89648fed34ce16c9">NB_BLOCS_HAUTEUR</a>];
<a name="l00031"></a><a class="code" href="structpositionJoueur.html#47f70178b953194de88cc3e64efa57a2">00031</a>     Evas_Object *<a class="code" href="structpositionJoueur.html#47f70178b953194de88cc3e64efa57a2">mario</a>,*<a class="code" href="structpositionJoueur.html#f173b5f22190b75d6938fd529ddb5e9e">caisse</a>;
<a name="l00032"></a><a class="code" href="structpositionJoueur.html#1836eba5195e39878cc6c94660aca310">00032</a>     <span class="keywordtype">int</span> <a class="code" href="structpositionJoueur.html#1836eba5195e39878cc6c94660aca310">carteInit</a>[<a class="code" href="constantes_8h.html#5b621c07985e98b04fc2d2195b85ad69">NB_BLOCS_LARGEUR</a>][<a class="code" href="constantes_8h.html#d0de8de53b10369f89648fed34ce16c9">NB_BLOCS_HAUTEUR</a>];
<a name="l00033"></a>00033 };
<a name="l00034"></a>00034 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Généré le Sun Apr 5 18:14:18 2009 pour e-MarioSakoban par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
